<template>
    <div class="filter">
        <div class="filter-item">
            <label for="">所属单位：</label>
            <el-select
                v-model="searchForm.depId"
                class="m-2"
                placeholder="请选择所属单位"
                style="width: 145px"
                :disabled="localTypeUnit != '1'"
            >
                <el-option
                    v-for="item in depIdList"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                />
            </el-select>
        </div>
        <div class="filter-item">
            <label for="">日期：</label>
            <el-date-picker
                style="width: 260px"
                v-model="searchForm.dateTime"
                type="daterange"
                unlink-panels
                range-separator="至"
                start-placeholder="开始时间"
                end-placeholder="结束时间"
                :size="'default'"
                :shortcuts="shortcuts"
            />
        </div>
        <div class="filter-item">
            <label for="">状态：</label>
            <el-select
                v-model="searchForm.status"
                class="m-2"
                placeholder="请选择状态"
                style="width: 145px"
            >
                <el-option
                    v-for="item in statusList"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                />
            </el-select>
        </div>
        <div class="filter-item">
            <el-button
                size="default"
                type="primary"
                @click="search"
            >查询</el-button>
            <el-button
                size="default"
                type="primary"
                @click="reset"
            >重置</el-button>
        </div>
    </div>
    <el-table
        :data="tableData"
        style="width: 100%"
        id="inspectionTask"
    >
        <el-table-column
            type="index"
            label="序号"
            width="55"
        />
        <el-table-column
            prop="depId"
            label="所属单位"
        >
            <template #default="scope">
                {{ depNameTranslate(scope.row.depId) }}
            </template>
        </el-table-column>
        <el-table-column
            prop="createTime"
            label="发布时间"
        />
        <el-table-column
            prop="publishUserName"
            label="发布人"
        />
        <el-table-column
            prop="taskContent"
            label="内容"
        />
        <el-table-column
            prop="executorName"
            label="执行人"
        />
        <el-table-column
            prop="status"
            label="任务状态"
        >
            <template #default="scope">
                {{
                    scope.row.status == "0"
                        ? "未开始"
                        : scope.row.status == "10"
                        ? "进行中"
                        : scope.row.status == "90"
                        ? "已完成"
                        : "关闭"
                }}
            </template>
        </el-table-column>
        <el-table-column
            prop="completedTime"
            label="完成时间"
        />

        <el-table-column
            fixed="right"
            label="操作"
            width="190"
        >
            <template #default="scope">
                <el-button
                    text
                    type="primary"
                    size="small"
                    :disabled="
                        scope.row.inspUser != null && scope.row.status != 0
                    "
                    @click="handleAdd('edit', scope.row)"
                >
                    调整
                </el-button>
                <el-button
                    text
                    type="primary"
                    size="small"
                    style="margin-left: 0"
                    :disabled="!(scope.row.status == '10')"
                    @click="reportTask(scope.row)"
                >
                    填报
                </el-button>
                <el-button
                    text
                    type="primary"
                    size="small"
                    style="margin-left: 0"
                    @click="optionRecord(scope.row)"
                >
                    操作记录
                </el-button>
            </template>
        </el-table-column>
    </el-table>
    <el-pagination
        v-model:current-page="searchForm.pageNo"
        v-model:page-size="searchForm.pageSize"
        layout="total, prev, pager, next, jumper"
        :total="total"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        class="paginationStyle"
    />
    <el-dialog
        v-model="recordListVisible"
        title="操作记录"
        width="1000"
    >
        <div class="filter">
            <div class="filter-item">
                <label for="">操作时间：</label>
                <el-date-picker
                    style="width: 240px"
                    v-model="recordTime"
                    type="daterange"
                    unlink-panels
                    range-separator="至"
                    start-placeholder="开始时间"
                    end-placeholder="结束时间"
                    :size="'default'"
                    :shortcuts="shortcuts"
                />
            </div>
            <div class="filter-item">
                <el-button
                    size="default"
                    type="warning"
                    @click="searchRecord(currentRowRecord)"
                >查询</el-button>
            </div>
        </div>
        <el-table
            :data="recordList"
            style="width: 100%"
        >
            <el-table-column
                prop="operationType"
                label="操作类型"
            />
            <el-table-column
                prop="createTime"
                label="操作时间"
                width="160"
            />
            <el-table-column
                prop="comment"
                label="操作内容"
                width="560"
            />
            <el-table-column
                prop="operationRealname"
                label="操作人"
            />
        </el-table>
        <el-pagination
            v-model:current-page="recordPageNo"
            v-model:page-size="recordPageSize"
            layout="total, prev, pager, next, jumper"
            :total="totalRecord"
            @size-change="handleSizeChangeRecord"
            @current-change="handleCurrentChangeRecord"
            class="paginationStyle"
        />
        <template #footer>
            <div class="dialog-footer">
                <el-button @click="recordListVisible = false">取消</el-button>
            </div>
        </template>
    </el-dialog>
    <el-dialog
        v-model="adjustVisible"
        title="调整"
        width="500"
    >
        <el-form
            label-width="120"
            ref="ruleFormRef"
            :model="adjustRuleForm"
            :rules="rules"
            class="demo-ruleForm"
            status-icon
            :inline="true"
        >
            <el-form-item
                label="调整项："
                prop="adjustType"
                required
            >
                <el-select
                    v-model="adjustRuleForm.adjustType"
                    placeholder=""
                    style="width: 200px"
                >
                    <el-option
                        v-for="item in adjustTypeList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                    />
                </el-select>
            </el-form-item>
            <el-form-item
                label="任务状态："
                prop="status"
                required
            >
                <el-select
                    v-model="adjustRuleForm.status"
                    placeholder=""
                    style="width: 200px"
                >
                    <el-option
                        v-for="item in adjustTypeStatusList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                    />
                </el-select>
            </el-form-item>
        </el-form>
        <template #footer>
            <div class="dialog-footer">
                <el-button @click="adjustVisible = false">取消</el-button>
                <el-button
                    type="primary"
                    @click="submitInfo"
                > 确认 </el-button>
            </div>
        </template>
    </el-dialog>
    <el-dialog
        v-model="reportTaskVisible"
        title="填报"
        width="700"
    >
        <div class="projectBox">
            <p>完成情况</p>

            <el-input
                v-model="reportTaskContent"
                type="textarea"
                rows="4"
            />
            <div class="urlBox">
                <p>
                    现场图片
                    <span style="font-size: 12px">(最多上传3张图片)</span>
                </p>
                <el-upload
                    v-model:file-list="reportTaskFileUrlList"
                    action="#"
                    :http-request="
                        (file) => {
                            httpRequest(file, index);
                        }
                    "
                    list-type="picture-card"
                    :on-remove="
                        (file) => {
                            handleRemove(file, index);
                        }
                    "
                    :on-preview="handlePictureCardPreview"
                    accept=".png,.jpg"
                    :limit="3"
                >
                    <el-icon>
                        <Plus />
                    </el-icon>
                </el-upload>
            </div>
        </div>
        <template #footer>
            <div class="dialog-footer">
                <el-button @click="reportTaskVisible = false">取消</el-button>
                <el-button
                    type="primary"
                    @click="reportTaskConfirm"
                >
                    确认
                </el-button>
            </div>
        </template>
    </el-dialog>

    <el-dialog
        v-model="dialogVisible"
        title="图片预览"
    >
        <img
            style="width: 100%"
            :src="dialogImageUrl"
            alt="Preview Image"
        />
    </el-dialog>
</template>

<script setup>
import schedulingHttp from "@/https/scheduling.js";
import userHttp from "@/https/user.js";
import Storage from "@/utils/storage.js"; // storage工具类，简单的封装
import { Plus } from "@element-plus/icons-vue";
import { ElMessage, ElMessageBox } from "element-plus";
import moment from "moment";
import { onMounted, reactive, ref, watch } from "vue";
const nowTime = new Date().getTime();
const day = new Date().getDay();
const oneDayTime = 24 * 60 * 60 * 1000;
const inspContent = ref("");
const currentUser = Storage.localGet("userId");
let searchForm = reactive({
    depId: "",
    inspectionLevel: "",
    dateTime: [moment(), moment().add(7, "day")],
    status: "",
    pageNo: 1,
    pageSize: 10,
});
const depIdList = ref([
    { label: "全部", value: "1" },
    { label: "星沙厂", value: "2" },
    { label: "城西厂", value: "3" },
    { label: "城北厂", value: "4" },
    { label: "城南厂", value: "5" },
    { label: "城东厂", value: "6" },
]);
const newDepIdList = ref([
    { label: "星沙厂", value: "2" },
    { label: "城西厂", value: "3" },
    { label: "城北厂", value: "4" },
    { label: "城南厂", value: "5" },
    { label: "城东厂", value: "6" },
]);
const depNameTranslate = (depId) => {
    let depName = "";
    depIdList.value.forEach((item) => {
        if (item.value == depId) {
            depName = item.label;
        }
    });
    return depName;
};
const inspectionLevelList = ref([
    { label: "全部", value: "" },
    { label: "一级", value: "一级" },
    { label: "二级", value: "二级" },
    { label: "三级", value: "三级" },
]);
const statusList = ref([
    { label: "全部", value: "" },
    { label: "未开始", value: "0" },
    { label: "进行中", value: "10" },
    { label: "已完成", value: "100" },
]);
const localTypeUnit = ref(Storage.localGet("depId"));
searchForm.depId = localTypeUnit.value;

const recordListVisible = ref(false);
const adjustVisible = ref(false);
const adjustRuleForm = ref({ adjustType: "任务状态", status: "" });
const adjustTypeList = ref([{ label: "任务状态", value: "任务状态" }]);
const adjustTypeStatusList = ref([{ label: "关闭", value: "100" }]);

const shortcuts = [
    {
        text: "本年",
        value: () => {
            return [
                moment().startOf("year"),
                moment().endOf("year"),
            ];
        },
    },
    {
        text: "本月",
        value: () => {
            return [
                moment().startOf("month"),
                moment().endOf("month"),
            ];
        },
    },
    {
        text: "下月",
        value: () => {
            return [
                moment().add(1, 'month').startOf("month"),
                moment().add(1, 'month').endOf("month"),
            ];
        },
    },
    {
        text: "本周",
        value: () => {
            return [
                moment().startOf("week"),
                moment().endOf("week"),
            ];
        },
    },
    {
        text: "下周",
        value: () => {
            return [
                moment().add(1, 'week').startOf("week"),
                moment().add(1, 'week').endOf("week"),
            ];
        },
    },
    {
        text: "本日",
        value: () => {
            return [
                moment(),
                moment(),
            ];
        },
    },
];
const shortcuts2 = [
    {
        text: "仅本月",
        value: () => {
            const now = new Date();
            const end = new Date(now.getFullYear(), now.getMonth() + 1, 0);
            const start = moment(new Date()).add(1, "day");
            return [start, end];
        },
    },
    {
        text: "本月及以后",
        value: () => {
            const now = new Date();
            const end = new Date(now.getFullYear(), now.getMonth() + 2, 0);
            const start = moment(new Date()).add(1, "day");
            return [start, end];
        },
    },
];
const disabledDate = (time) => {
    // 禁用今天之前的日期
    return time.getTime() < Date.now(); // 8.64e7 毫秒数代表一天
};
const updateTime = ref([
    // "2024-04-01",
    // "2024-04-30",
    moment(new Date()).add(1, "day"),
    new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0),
]);
let ruleForm = reactive({
    region: "",
    name: "",
    desc: "",
    continuous: "",
    value1: [],
    type11: "class",
    number: 1,
    dayNumber: 1,
    monthNumber: 1,
    weekNumber: "1",
    week: "Mon",
    inspectionType: 1,
});
const tableData = ref([]);
const adjustType = ref("巡检人员");
const inspectionType = ref("当日值班班组");
const inspectionUser = ref("");
const typeList = ref([]);
const adjustTime = ref(moment().format("YYYY-MM-DD"));
const adjustStatus = ref("100");

const classesShowList = ref([]);
// 查询班次信息
const getWorkClassQueryWorkClassShow = async (type, row) => {
    let params = {
        depId: dailyTaskRuleForm.depId,
        classType: "1",
        isDelete: "0",
        pageNo: 1,
        pageSize: 1000,
    };
    const res = await schedulingHttp.workClassQueryWorkClass(params);
    if (res.data.code == 200) {
        res.data.data.records.forEach((item) => {
            item.label = item.className;
            item.shortLabel = item.classShortName + "";
            item.value = item.id + "";
            item.statusTrigger = false;
        });
        classesShowList.value = res.data.data.records;
        typeList.value = classesShowList.value;
    }
};
const userList = ref([]);
const userQueryUserList = async (row) => {
    let params = {
        depId: dailyTaskRuleForm.depId,
        isDelete: 0,
        pageNo: 1,
        pageSize: 10000,
    };
    const res = await userHttp.userQueryUserList(params);
    if (res.data.code == 200) {
        res.data.data.records.forEach((item) => {
            item.label = item.realName;
            item.value = item.id + "";
        });
        userList.value = res.data.data.records;
    }
};
const groupList = ref([]);
// 查询班组信息
const getWorkteamsQueryWorkTeams = async (row) => {
    let params = {
        depId: dailyTaskRuleForm.depId,
        pageNo: 1,
        pageSize: 10000,
    };
    const res = await schedulingHttp.workteamsQueryWorkTeams(params);
    if (res.data.code == 200) {
        res.data.data.records.forEach((item) => {
            item.label = item.teamName;
            item.value = item.id;
        });
        groupList.value = res.data.data.records;
    }
};
const adjustStatusList = ref([
    { label: "未开始", value: "0" },
    { label: "进行中", value: "10" },
    { label: "已完成", value: "100" },
]);
const adjustList = ref([
    { label: "单次", value: "1" },
    { label: "每天", value: "2" },
]);
const currentAdjustRow = ref();
const ruleFormRef = ref();
const currentPublishType = ref("");

const dailyTaskRuleForm = reactive({
    id: "",
    depId: "",
    executor: "",
    executorMode: "",
    planEndTime: "",
    planStartTime: "",
    publishType: "",
    taskContent: "",
});

dailyTaskRuleForm.depId = localTypeUnit.value;

const handleAdd = (type, row) => {
    currentPublishType.value = type;
    getWorkClassQueryWorkClassShow(type, row);
    getWorkteamsQueryWorkTeams(type, row);
    userQueryUserList(type, row);
    adjustVisible.value = true;
    if (type == "edit") {
        dailyTaskRuleForm.id = row.id + "";
        dailyTaskRuleForm.depId = row.depId + "";
        dailyTaskRuleForm.executor = row.executor + "";
        dailyTaskRuleForm.executorMode = row.executorMode + "";
        dailyTaskRuleForm.planEndTime = row.planEndTime;
        dailyTaskRuleForm.planStartTime = row.planStartTime;
        dailyTaskRuleForm.publishType = row.publishType + "";
        dailyTaskRuleForm.taskContent = row.taskContent;
    } else {
        dailyTaskRuleForm.id = "";
        dailyTaskRuleForm.depId =
            localTypeUnit.value == "1" ? "" : localTypeUnit.value;
        dailyTaskRuleForm.executor = "";
        dailyTaskRuleForm.executorMode = "";
        dailyTaskRuleForm.planEndTime = "";
        dailyTaskRuleForm.planStartTime = "";
        dailyTaskRuleForm.publishType = "";
        dailyTaskRuleForm.taskContent = "";
    }
};
const rules = ref({
    status: [
        {
            required: true,
            message: "请选择",
            trigger: "blur",
        },
    ],
    adjustType: [
        {
            required: true,
            message: "请选择",
            trigger: "blur",
        },
    ],
});

const submitInfo = () => {
    console.log(1);
    if (!ruleFormRef) return;
    ruleFormRef.value.validate(async (valid, fields) => {
        if (valid) {
            const res = await schedulingHttp.handoverTaskAdjustTask(
                adjustRuleForm.value
            );
            if (res.data.code == 200) {
                ElMessage({
                    type: "success",
                    message: "调整成功",
                });
                adjustVisible.value = false;
                search();
            } else {
                ElMessage({
                    type: "error",
                    message: res.data.msg,
                });
            }
        }
    });
};
const activeName = ref("");

const handleClick = (name) => { };
const activeEq = ref({});
const currentTask = ref({});
// 填报
const reportTaskDataList = ref([]);
const reportTaskContent = ref();
const reportTaskFileUrlList = ref([]);
const fileUrlList = ref([]);
const reportTaskVisible = ref(false);
const reportTask = async (row) => {
    reportTaskVisible.value = true;
    currentTask.value = row;
};
const uploadList = ref([]);
const fileList = ref([]);

const dialogImageUrl = ref("");
const dialogVisible = ref(false);

const handleRemove = (uploadFile, index) => {
    console.log(uploadFile, index);
    reportTaskFileUrlList.value.forEach((m, n) => {
        if (uploadFile.id == m.id) {
            fileUrlList.value.splice(n, 1);
        }
    });
    console.log(reportTaskFileUrlList.value);
};

const handlePictureCardPreview = (uploadFile) => {
    dialogImageUrl.value = uploadFile.url;
    dialogVisible.value = true;
};
const uploadImgCount = ref(0);
const httpRequest = (params, index) => {
    console.log(params, index, "httpRequest");
    uploadImgCount.value++;
    schedulingHttp.fileInfoUpload(params).then((res) => {
        if (res.data.code == 200) {
            console.log(reportTaskFileUrlList.value, "1111111");
            fileUrlList.value.push({
                fileName: res.data.data.fileName,
                url: res.data.data.url,
                id: res.data.data.id,
            });
            uploadImgCount.value--;
            ElMessage({
                type: "success",
                message: "上传成功",
            });
        }
    });
};
const reportTaskConfirm = async () => {
    if (uploadImgCount.value > 0) {
        ElMessage({
            type: "error",
            message: "请等待图片上传成功",
        });
        return;
    }
    let msgReportNoFinish = 0;
    let msgReportNoFinishList = [];
    let imgids = [];
    if (fileUrlList.value.length > 0) {
        fileUrlList.value.forEach((m) => {
            imgids.push(m.id);
        });
    }
    let params = {
        id: currentTask.value.id,
        completedCase: reportTaskContent.value,
        imageIds: imgids.join(","),
    };
    const res = await schedulingHttp.handoverTaskReportTask(params);
    if (res.data.code == "200") {
        reportTaskVisible.value = false;
        ElMessage({
            type: "success",
            message: "提交成功",
        });
        search();
    } else {
        ElMessage({
            type: "error",
            message: "提交失败",
        });
    }
};
const saveTaskConfirm = async () => {
    reportTaskDataList.value.forEach((item) => {
        item.equipmentId = item.id;
        let imgids = [];
        if (item.fileList.length > 0) {
            item.fileList.forEach((m) => {
                imgids.push(m.id);
            });
            item.imageIds = imgids.join(",");
        } else {
            item.imageIds = "";
        }
    });
    let params = {
        id: currentTask.value.id,
        detailList: reportTaskDataList.value,
        inspContent: inspContent.value,
    };
    const res = await schedulingHttp.inspTaskSaveTask(params);
    if (res.data.code == "200") {
        reportTaskVisible.value = false;
        ElMessage({
            type: "success",
            message: "填报成功",
        });
        search();
    } else {
        ElMessage({
            type: "error",
            message: "填报失败",
        });
    }
};

let total = ref(0);
const handleSizeChange = (val) => {
    searchForm.pageSize = val;
    search();
};
const handleCurrentChange = (val) => {
    searchForm.pageNo = val;
    search();
};
const search = async () => {
    let params = {
        ...searchForm,
        startTime: searchForm.dateTime[0]
            ? moment(searchForm.dateTime[0]).format("YYYY-MM-DD")
            : "",
        endTime: searchForm.dateTime[1]
            ? moment(searchForm.dateTime[1]).format("YYYY-MM-DD")
            : "",
    };
    const res = await schedulingHttp.handoverTaskQueryTaskList(params);
    if (res.data.code == 200) {
        tableData.value = res.data.data.records;
        total.value = res.data.data.total;
    }
};
const reset = () => {
    searchForm.depId = localTypeUnit.value;
    searchForm.inspectionLevel = "";
    searchForm.dateTime = [moment().add(-7, "day"), moment()];
    searchForm.status = "";
    searchForm.pageNo = 1;
    searchForm.pageSize = 10;
    search();
};

const handleDelete = (row) => {
    ElMessageBox.confirm(`是否删除该任务？`, "删除", {
        confirmButtonText: "确认",
        cancelButtonText: "取消",
        type: "warning",
    })
        .then(() => {
            schedulingHttp.dailyTaskRemoveTask({ id: row.id }).then((res) => {
                if (res.data.code == 200) {
                    ElMessage({
                        message: "删除成功",
                        type: "success",
                    });
                    search();
                } else {
                    ElMessage({
                        message: "删除失败！",
                        type: "error",
                    });
                }
            });
        })
        .catch(() => {
            ElMessage({
                type: "info",
                message: "取消删除",
            });
        });
};
const recordTime = ref([]);
const recordList = ref([]);
const currentRowRecord = ref();
const optionRecord = async (row) => {
    recordListVisible.value = true;
    currentRowRecord.value = row;
    recordTime.value[0] = moment().format("YYYY-MM-DD");
    recordTime.value[1] = moment().add(1, "day").format("YYYY-MM-DD");
    searchRecord(currentRowRecord.value);
};
const recordPageNo = ref(1);
const recordPageSize = ref(10);

let totalRecord = ref(0);
const handleSizeChangeRecord = (val) => {
    recordPageSize.value = val;
    searchRecord(currentRowRecord.value);
};
const handleCurrentChangeRecord = (val) => {
    recordPageNo.value = val;
    searchRecord(currentRowRecord.value);
};
const searchRecord = async (row) => {
    let params = {
        businessId: row.id,
        operationType: "",
        businessType: "日常任务",
        startTime:
            recordTime.value.length > 0
                ? moment(recordTime.value[0]).format("YYYY-MM-DD")
                : "",
        endTime:
            recordTime.value.length > 0
                ? moment(recordTime.value[1]).format("YYYY-MM-DD")
                : "",
        pageNo: recordPageNo.value,
        pageSize: recordPageSize.value,
    };
    const res = await schedulingHttp.operationRecordsQueryOperationRecords(
        params
    );
    if (res.data.code == 200) {
        recordList.value = res.data.data.records;
        totalRecord.value = res.data.data.total;
    }
};
const updateTask = () => { };
watch(
    () => dailyTaskRuleForm.depId,
    (val) => {
        getWorkClassQueryWorkClassShow();
        getWorkteamsQueryWorkTeams();
        userQueryUserList();
    },
    { deep: true }
);
watch(
    () => dailyTaskRuleForm.executorMode,
    (val) => {
        console.log(val, "value");
        if (val == "当日值班班组") {
            typeList.value = classesShowList.value;
        } else if (val == "固定班组") {
            typeList.value = groupList.value;
        } else if (val == "固定人员") {
            typeList.value = userList.value;
        }
    },
    { deep: true }
);
onMounted(() => {
    getWorkClassQueryWorkClassShow();
    getWorkteamsQueryWorkTeams();
    userQueryUserList();
    search();
});
</script>

<style scoped lang="less">
.filter {
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    .filter-item {
        margin: 0 15px 15px 0px;
        display: flex;
        flex-direction: row;
        align-items: center;
        label {
            font-size: 14px;
            color: #333;
            display: inline-block;
            white-space: nowrap;
        }
    }
}
.reportLabel {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
    p {
        line-height: 1.5;
    }
}
:deep .el-dialog__body {
    padding: 20px !important;
}
:deep .el-tabs__item {
    height: 100px !important;
}
:deep .el-upload {
    width: 100px !important;
    height: 100px !important;
}
:deep .el-upload-list__item.is-ready {
    width: 100px !important;
    height: 100px !important;
}
:deep .el-upload-list__item.is-success {
    width: 100px !important;
    height: 100px !important;
}

.scopeBox {
    min-width: 130px;
}
.dialogTitle {
    line-height: 2;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.projectBox {
    padding: 0 20px;
    p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .urlBox {
        // display: flex;
        // flex-direction: row;
        margin-top: 30px;
    }
    ul li {
        line-height: 1.5;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
</style>